package com.liu.yml.config;

import com.liu.yml.domain.Pet;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.*;

/**
 * @author LIU
 * @version 1.0
 * @description: TODO
 * @date 2023/6/4 20:03
 */
@Data
@Component
@ConfigurationProperties(prefix = "person")
public class PersonProperties {
    private String userName;
    private Boolean boss;
    private Date birth;
    private Integer age;
    private Pet pet;
//    private List<Pet> pets;
    private List<HashMap<String,String>> pets;
    private String[] interests;
    private List<String> animal;
    private Set<Double> salarys;
    private Map<String, Object> score;
    private Map<String, List<Pet>> allPets;
}
